package com.fpd.thread;

/**
 * @desc 任务
 * @author wujiangbo
 * @date 2019年12月6日 上午10:34:22
 */
public class TracingTask implements Runnable {

	private TracingObject tracingObject;

	public TracingTask(TracingObject tracingObject) {
		this.tracingObject = tracingObject;
	}

	@Override
	public void run() {
		try {
			System.out.println(Thread.currentThread().getName() + "\t" + this.tracingObject);
			// 增加执行一个任务的时间-秒
			Thread.sleep(2 * 1000);
		} catch (InterruptedException ex) {
			ex.printStackTrace();
		}
	}

}
